class RegisterState {
  final String userName;
  final String email;
  final String password;
  final String confirmPassword;
  // 构造函数
  RegisterState({
    this.userName = '',
    this.email = '',
    this.password = '',
    this.confirmPassword = '',
  });
  // copyWith方法，用于复制当前对象并修改部分属性
  RegisterState copyWith({
    String? userName,
    String? email,
    String? password,
    String? confirmPassword,
  }) {
    return RegisterState(
      userName: userName ?? this.userName,
      email: email ?? this.email,
      password: password ?? this.password,
      confirmPassword: confirmPassword ?? this.confirmPassword,
    );
  }
}
